﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp_ORM
{
    public class DbInit : System.Data.Entity.CreateDatabaseIfNotExists<Admin3000DBContext>
    {

        protected override void Seed(Admin3000DBContext context)
        {
            context.Users.Add(new Entity.Users
            {
                UserName = "admin",
                Password = "123",
                IsActived = true,
                IsDeleted = false,
                CreateTime = DateTime.Now,
                UpdateTime = DateTime.Now
            });

            base.Seed(context);
        }



    }
}